package host.impl;

import enums.State;

public class HostTable extends Host{
	/**
	 * 
	 */
	private static final long serialVersionUID = -8502715459361363606L;
	
	private int num;
	private int pingNB;
	private State state;
	
	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	public int getPingNB() {
		return pingNB;
	}

	public void setPingNB(int pingNB) {
		this.pingNB = pingNB;
	}

	public State getState() {
		return state;
	}

	public void setState(State state) {
		this.state = state;
	}
	
	public HostTable(int num, Host host, State state, int pingNB){
		super(host);
		this.num = num;
		this.state = state;
		this.pingNB = pingNB;
	}
	
	public HostTable(int num, HostTable host){
		super(host);
		this.num = num;
		this.state = host.getState();
		this.pingNB = host.getPingNB();
	}
	
	public HostTable(int num,String ipAddress,int registryPortNumber,State state,int pingNB){
		this.num = num;
		this.ipAddress = ipAddress;
		this.registryPortNumber = registryPortNumber;
		this.state = state;
		this.pingNB = pingNB;
	}
}
